package com.yhq.basic.thread.lock;

import java.util.concurrent.Semaphore;

/**
 * @author hqyin
 * @date 2025/5/20 5:34 PM
 */
public class Demo3Semaphore {
    public static void main(String[] args) throws InterruptedException {
        Semaphore semaphore = new Semaphore(2);
        semaphore.acquire();
        semaphore.release();
    }
}
